package com.org.netty.rpc.consumer;

import com.org.netty.rpc.nettyStarter.nettyClient;
import com.org.netty.rpc.publicInterface.RpcService;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/2/11 星期五 20:31
 */
public class ClientBootStrap {

    public static final String provideProtocol = "###*";

    public static void main(String[] args) {
        nettyClient consumer = new nettyClient();

        RpcService rpcService = (RpcService) consumer.getBean(RpcService.class, provideProtocol);

        String hello = rpcService.SendHello("hello");

        System.out.println("结果是:" + hello);
    }
}
